package com.xtecher.app.user.bean;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by Luhao on 2017/2/24.
 */

public class FollowUserResponse implements Parcelable {

    /**
     * uid : 109582
     * name : dudeluun
     * head_img : 589d670325c20.jpeg
     * avatar : http://xtecher.com/Uploads/Avatar/589d670325c20.jpeg
     */

    private String uid;
    private String name;
    private String head_img;
    private String avatar;

    public String getUid() {
        return uid;
    }

    public void setUid(String uid) {
        this.uid = uid;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getHead_img() {
        return head_img;
    }

    public void setHead_img(String head_img) {
        this.head_img = head_img;
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.uid);
        dest.writeString(this.name);
        dest.writeString(this.head_img);
        dest.writeString(this.avatar);
    }

    public FollowUserResponse() {
    }

    protected FollowUserResponse(Parcel in) {
        this.uid = in.readString();
        this.name = in.readString();
        this.head_img = in.readString();
        this.avatar = in.readString();
    }

    public static final Parcelable.Creator<FollowUserResponse> CREATOR = new Parcelable.Creator<FollowUserResponse>() {
        @Override
        public FollowUserResponse createFromParcel(Parcel source) {
            return new FollowUserResponse(source);
        }

        @Override
        public FollowUserResponse[] newArray(int size) {
            return new FollowUserResponse[size];
        }
    };
}
